﻿<?php


/*
 *
 *
 * --------------------------------------------------------------------
 * Copyright (c) 2001 - 2011 Openfiler Project.
 * --------------------------------------------------------------------
 *
 * Openfiler is an Open Source SAN/NAS Appliance Software Distribution
 *
 * This file is part of Openfiler.
 *
 * Openfiler is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * Openfiler is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Openfiler.  If not, see <http://www.gnu.org/licenses/>.
 *
 * --------------------------------------------------------------------
 *
 *
 */
        require ("pre.inc");
        include("authenticated.inc");



		generic_header(array ("title" => _("OPENFILER : 服务 : UPS 设置"), "ajax" => $ajax));
		single_begin(array ());
		?>

                <p>&nbsp;</p>
		<?php

		nested_tab_begin("C_SERVICES_UPS");
		print ("<h3 align=\"center\">UPS 设置</h3>\n");

		print ("<div align=\"center\">\n");
		print ("<table><tr><td>\n");
		print ("<h4>管理任务</h4>\n");
		print ("<ol>\n");
		print ("<li><a href=\"#\" onclick=\"tinker_buildServiceModeForm(); Effect.BlindDown('configdiv'); return false;\">配置服务模式（客户端/服务器）</a></li>\n");
		print ("<li><a href=\"#\" onclick=\"tinker_buildACLConfigForm(); Effect.BlindDown('configdiv'); return false;\">配置访问控制</a></li>\n");
		print ("<li><a href=\"#\" onclick=\"tinker_buildUserManagerForm(); Effect.BlindDown('configdiv');  return false;\">添加 UPSD 用户</a></li>\n");
		print ("<li><a href=\"#\" onclick=\"tinker_deleteUPSDUserForm(); Effect.BlindDown('configdiv');  return false;\">删除 UPSD 用户</a></li>\n");
		print ("<li><a href=\"#\" onclick=\"tinker_buildLocalUPSMonForm(); Effect.BlindDown('configdiv');  return false;\">添加UPS系统监控条目</a></li>\n");
		print ("<li><a href=\"#\" onclick=\"tinker_deleteLocalUPSMonForm(); Effect.BlindDown('configdiv');  return false;\">删除UPS系统监控条目</a></li>\n");
		print ("</ol>");
		print ("</td></tr></table>\n");
		print ("</div>\n");

		print ("<div id=\"configdiv\" style=\"display:none;\">\n");
		print ("<div id=\"innerdiv\"></div>");
		print ("</div>");
		nested_tab_end();
		?>

			<script type="text/javascript">


			function blindUp()
			{
				Effect.BlindUp('configdiv');
			}

			window.onload = document.getElementById('configdiv').className = 'genericSlideDownhide';

			function isDown()
			{
				if(document.getElementById('configdiv').className == 'genericSlideDownshow')
				{
					return true;
				}

				else return false;

			}

			function isUp()
			{
				if(document.getElementById('configdiv').className == 'genericSlideDownhide')
				{
					return true;
				}

				else return false;
			}
			</script>

			<?php


		single_end(array ());
		generic_footer(array ());
?>

